﻿<?php
/* @var $this DefaultController */

$this->breadcrumbs=array(
	'Default'=>array('/admin/default'),
	'Login',
);
?>
<h1><?php echo $this->id . '/' . $this->action->id; ?></h1>

<p>
	You may change the content of this page by modifying
	the file <tt><?php echo __FILE__; ?></tt>.
</p>

<?php
	$form=$this->beginWidget('CActiveForm',array(
		'id'=>'login_form',
		'action'=>'login',
		'enableClientValidation'=>true,
		'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
		));
	echo $form->errorSummary($model);
	echo $form->labelEx($model,'用户名');
	echo $form->textField($model,'username');
	echo $form->error($model,'username');
	echo '<br/>';
	echo $form->labelEx($model,'密码');
	echo $form->textField($model,'password');
	echo $form->error($model,'password');
	echo '<br/>';
	echo CHtml::submitButton('登录');
	$this->endWidget();
?>

